home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / System7 tools / S / System 7 corner / AE⁄EM Trapping / Read Me • AE⁄EM trapping < prev   
Encoding:
Text File  |  1991-03-28  |  1.0 KB  |  22 lines  |  [ttro/ttxt]

  1. AppleEvent and Edition Manager PACK trapping
  2. Here are some MacsBug macros that will allow you to
  3. break on AppleEvent and Edition Manager PACK calls.
  4. This of course can be very handy when you are developing and 
  5. debugging.
  6. To use them, open up the 'AE & Edition PACK trapping' with ResEdit.  Select the 
  7. 'mxbm' resource icon and copy it.  Close the 'AE & Edition PACK trapping' file.
  8. Open your 'Debbugger Prefs' file (it should be in your system folder) and
  9. paste the 'mxbm' resource into it.
  10. NOTE: You may get a 'duplicate resource ID' alert, if you do just hit the
  11. 'Unique ID' button and you'll be fine.
  12. Restart your Mac, and you can now type 'atb AESend' (or any other
  13. AppleEvent or Edition Manager call) and you will break when the 
  14. call is made.
  15. This should work fine for all the calls, but it was a bit of typing 
  16. so there are probably some spelling mistakes.  If you get an
  17. 'unrecognized symbol' error, you may want to check how I spelled it.
  18. C.K. Haun
  19. DTS
  20.  
  21. Written under the FredWare priciple: 
  22. If you don't like it,write a better one.